package examples.guicestarter

import de.saxsys.mvvmfx.FluentViewLoader
import de.saxsys.mvvmfx.guice.MvvmfxGuiceApplication
import examples.complex.view.maincontainer.MainContainerView
import javafx.scene.Scene
import javafx.stage.Stage

/**
 * Created by Misty on 2015/6/6.
 */
class Starter extends MvvmfxGuiceApplication {
    public static void main(String[] args) {
        launch(Starter, args)
    }

    @Override
    void startMvvmfx(Stage stage) throws Exception {
        def tuple = FluentViewLoader.fxmlView(MainContainerView).load()

        def view = tuple.view

        def scene = new Scene(view)
        stage.scene = scene
        stage.show()
    }
}
